package com.laf.mobile.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "移动端用户登录参数")
public class MobileUserLoginDTO {
    @NotBlank(message = "cid 不能为空")
    @ApiModelProperty(value = "设备id", required = true)
    private String cid;

    @ApiModelProperty(value = "设备平台", required = false)
    private String clientPlatform;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    @Size(min = 4, max = 20, message = "用户名长度为4-20")
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    @Size(min = 6, max = 20, message = "密码长度为6-20")
    private String password;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String code;

    @NotBlank(message = "唯一标识不能为空")
    @ApiModelProperty(value = "唯一标识", required = true)
    private String uuid;


}
